package com.xiaoxiao.springbootstudy.mapper;

import com.xiaoxiao.springbootstudy.pojo.RoleMenu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author XiaoXiao
 * @description 针对表【t_role_menu】的数据库操作Mapper
 * @createDate 2025-05-19 14:34:27
 * @Entity com.xiaoxiao.springbootstudy.pojo.RoleMenu
 */
public interface RoleMenuMapper extends BaseMapper<RoleMenu> {
    @Select("select t_role_menu.mid from  t_menus inner join t_role_menu on t_menus.id=t_role_menu.mid where rid=#{rid} and t_menus.pid != 0")
    public List<Integer> queryRoleMidsListMapper(Integer rid);
}




